<template>
    <div class="message">
        <div class="title">message:</div>
        <div class="content">{{ cnt }}</div>
    </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
    computed: {
        ... mapGetters({
            cnt: 'cnt'
        })
    }
}
</script>

<style lang="less">

    @base: grey;

    .message {
        height: 25px;
        margin: 15px, auto;
        background-color: @base;

        .title {
            height: 20px;
            line-height: 20px;
            margin: 2.5px;
            background: #fff;
            display: inline-block;

            &:hover {
                background: red;
            }
        }

        .content {
            height: 20px;
            line-height: 20px;
            margin: 2.5px;
            background: #fff;
            display: inline-block;
        }
    }

</style>